import * as echarts from 'echarts';
type EChartsOption = echarts.EChartsOption;


export default function barOption6(myChart: echarts.ECharts) {
    return {
        title: {
            text: 'bar Chart6',
            subtext: 'Fake Data',
            left: 'center'
        },
        xAxis: {
            type: "value",
            max: 'dataMax'
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        yAxis: {
            type: 'category',
            data: [],
            inverse: true,
            animationDuration: 300,
            animationDurationUpdate: 300,
            //   max: 2 // only the largest 3 bars will be displayed
        },
        series: [
            {
                realtimeSort: true,
                name: 'X',
                type: 'bar',
                data: [],
                label: {
                    show: true,
                    position: 'right',
                    valueAnimation: true
                }
            }
        ],
        // legend: {
        //     show: true
        // },
        animationDuration: 0,
        animationDurationUpdate: 3000,
        animationEasing: 'linear',
        animationEasingUpdate: 'linear'
    } as EChartsOption;
}

